﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserEdit.ascx.cs" Inherits="Sites_CanNhaMoUoc_Webparts_User_UserEdit" %>
<script type="text/javascript" src="<%=this._VirtualURL %>Resources/js/custom/ntthao.js"></script>
<script type="text/javascript" src="<%=this._VirtualURL %>Resources/js/custom/validator.js"></script>
<script type="text/javascript">
function validateForm() {
    var validateResult = NTTHAO.validator.formValidationRequired();
    return validateResult;
}
</script>
<form id="aspnetForm" action="" runat="server" onsubmit="return validateForm();">
<input type="hidden" id="encryptedPassword" name="encryptedPassword" value="" runat="server"/>
<div class="oh center" style="margin-top: 20px;">
<div class="news-title" style="text-align: center;">THÔNG TIN CÁ NHÂN</div>
<div class="border-round left">
<div class="fm bg_form" style="width:460px;">
    <div class="fm">
        <table border="0" cellpadding="3" cellspacing="0">
            <tr>
                <td width="110px;">Email đăng nhập: </td>
                <td>
                    <%--<input type="text" id="txtEmail" style="width:300px;" disabled="disabled" value="<%=NTTHAO.Sites.CanNhaMoUoc.Authentication.Name %>" />--%>
                </td>
            </tr>
            <tr>
                <td>Xưng hô: </td>
                <td>
                    <asp:DropDownList ID="cmbUserTitle" runat="server" style="width:100px;">
                        <asp:ListItem Value="0" Text="----"></asp:ListItem>
                        <asp:ListItem Value="1" Text="Ông"></asp:ListItem>
                        <asp:ListItem Value="2" Text="Bà"></asp:ListItem>
                        <asp:ListItem Value="3" Text="Anh"></asp:ListItem>
                        <asp:ListItem Value="4" Text="Chị"></asp:ListItem>
                        <asp:ListItem Value="5" Text="Công ty"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Tên liên hệ:&nbsp;<span style="color: Red;">*</span> </td>
                <td>
                    <input name="txtContactName" type="text" maxlength="150" id="txtContactName" onblur="NTTHAO.validator.validateMe" autocomplete="off" formtip="Nhập tiếng Việt có dấu." style="width:300px;" runat="server" />
                    <asp:CustomValidator ID="CustomValidator2" runat="server" ClientValidationFunction="NTTHAO.validator.noBlank"
                        ControlToValidate="txtContactName" Display="Dynamic" ErrorMessage="<br />Chưa nhập tên liên hệ."
                        ValidateEmptyText="True"></asp:CustomValidator></td>
            </tr>
            <tr>
                <td>Địa chỉ:&nbsp;<span style="color: Red;">*</span> </td>
                <td>
                    <textarea name="txtAddress" id="txtAddress" maxlength="150" style="width:300px; height:50px;" runat="server"></textarea>
                    <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="NTTHAO.validator.noBlank"
                        ControlToValidate="txtAddress" Display="Dynamic" ErrorMessage="<br />Chưa nhập địa chỉ liên hệ."
                        ValidateEmptyText="True"></asp:CustomValidator>
                </td>
            </tr>
            <tr>
                <td>Quốc tịch: </td>
                <td>
                    <input id="rdbNational_0" type="radio" name="rdbNational" value="0" checked="true" runat="server" />
                    <label for="<%=rdbNational_0.ClientID %>">Việt Nam</label>
                    <input id="rdbNational_1" type="radio" name="rdbNational" value="1" runat="server" />
                    <label for="<%=rdbNational_1.ClientID %>">Nước ngoài</label>
                </td>
            </tr>
            <tr>
                <td>Điện thoại di động: </td>
                <td>
                    <input name="txtPhone" type="text" maxlength="11" id="txtPhone" style="width:300px;" runat="server" />
                 </td>
            </tr>
            <tr>
                <td>Điện thoại cố định: </td>
                <td>
                    <input name="txtHomePhone" type="text" maxlength="11" id="txtHomePhone" style="width:300px;" runat="server" />
                 </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <asp:Button Text="Cập nhập" ID="btnSubmit" OnClick="btnSubmit_Click" runat="server" />
                    <input type="reset" value="Làm lại" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
    <%if (this._Message != string.Empty) { %>
    <span style="color: Blue; font-weight: bold;"><%=this._Message %></span>
    <%} %>
                </td>
            </tr>
        </table>
    </div>
</div>
</div>
</div>
</form>